package org.aeon.message.request;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.aeon.entity.dto.ChatGroupDto;
import org.aeon.entity.dto.UserDto;

import java.io.Serial;
import java.util.Date;

/**
 * @author MissingAeon
 * @date 2024/1/26 8:49
 * @description
 */
@Getter
@Setter
@ToString
public class GroupChatRequestMessage extends RequestMessage {
    @Serial
    private static final long serialVersionUID = 7684773945205691254L;
    private UserDto from;
    private ChatGroupDto to;
    private String content;
    private Date creationTime;


    public void  setMessage(UserDto from, ChatGroupDto to, String content, Date creationTime) {
        this.from = from;
        this.to = to;
        this.content = content;
        this.creationTime = creationTime;
    }

    @Override
    public int getMessageType() {
        return GroupChatRequestMessage;
    }
}
